package com.wicket.okrframework.integration.dto;

import com.wicket.okrframework.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Objects;
import lombok.Data;

@Data
public class PostGradesDto extends BaseDto implements Serializable {

  /**
   * 岗位等级ID:
   */
  @ApiModelProperty("岗位等级ID")
  private String stationGradeId;

  /**
   * 岗位等级中文名称:
   */
  @ApiModelProperty("岗位等级中文名称")
  private String stationGradeName;

  /**
   * 排序:
   */
  @ApiModelProperty("排序")
  private Long orderNumber;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    PostGradesDto that = (PostGradesDto) o;
    return (
      stationGradeId == that.stationGradeId &&
      stationGradeName == that.stationGradeName &&
      orderNumber == that.orderNumber
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      stationGradeId,
      stationGradeName,
      orderNumber
    );
  }

}
